package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.mapper.MybatisListHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_agencies", autoResultMap = true)
@Document(indexName = "t_agencies")
public class AgenciesDO extends  BaseDO{
    @ApiModelProperty(value = "代理机构名称", required = true)
    @Field(name = "name", type = FieldType.Text, analyzer="ik_max_word")
    private String name;
}
